package com.dys.testclassaffect;

/**
 * @className: com.dys.testclassaffect.Girl
 * @description: com.dys.testclassaffect
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/07/20 下午10:50
 */
public class Girl {
    // 属性
    double weight;
    String name;
    // Mom mm = new Mom();
    Mom mom;

    public Girl() {
    }

    public Girl(double weight, String name) {
        this.weight = weight;
        this.name = name;
    }

    // 谈恋爱
    public void love(Boy boy) {
        System.out.println("男朋友名字是: " + boy.getName() + ",那朋友的年龄: " + boy.getAge());
        boy.buy();
    }

    public void weChat() {
        mom.say();
        System.out.println("跟妈妈聊天...");
    }
}
